﻿using System;
using System.Collections.Generic;
using Yamfinder.Service;

namespace Yamfinder.Web.Models
{
    public class SearchResultsModel
    {
        public SearchResultsModel(DateTime searchStartTime, LexicalTable data, IList<string> fieldsToDisplay)
        {
            Data = data;
            FieldsToDisplay = fieldsToDisplay;

            Timestamp = searchStartTime;
            TimeTaken = DateTime.Now - searchStartTime;
        }

        public DateTime Timestamp { get; set; }
        public TimeSpan TimeTaken { get; set; }

        public LexicalTable Data { get; set; }

        public IList<string> FieldsToDisplay { get; set; }
    }
}